package com.question.view.command.play;

import com.question.Design.SingletonMode;
import com.question.entity.User;
import com.question.service.IPlayerService;
import com.question.utils.InputOutUtils;

public class CatQuestionCommand extends PlayerSuper{
	private IPlayerService playerService = SingletonMode.getPlayerService();
	@Override
	protected void exec(User player) {
		InputOutUtils.print("请输入要查看详细问题的ID");
		Integer id = InputOutUtils.inputInteger("ID->");
		 String questionInfo = playerService.findQuestionInfoById(id).getQuestion_info();
		InputOutUtils.print("*************问题详情*************",questionInfo);
		
	}
}